package com.baiyang.server.model.book;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baiyang.server.annotation.NotNull;

import java.util.List;

/**
 * @author XVX - generator
 * @version 1
 */
@NotNull
public class Book {
	//唯一id
	@NotNull
	private String id;	
	//书籍名称
	@NotNull
	private String bookName;	
	//作者
	@NotNull
	private String author;	
	//金额
	@NotNull
	private Double price;	
	//出版社id
	@NotNull
	private String pressId;
	private String pressName;
	// 书籍类型ids
	private List<String> typeIds;
	private List<BookType> bookTypes;
	// 标题展示图片
	private List<Resources> resources;
	// 页面展示的第一张图片
	private String headPic;
	// 书籍特色展示图片
	private List<Resources> detailResources;
	private JSONArray details;
	//创建时间
	private String createTime;	
	//创建人
	@NotNull
	private String createBy;
	private String createName;
	// xml文件地址
	private String detailsPath;
	//是否有效：1-有效，0-无效
	private String available = "1";
	//是否删除：1-删除，0-不删除
	private String del = "0";
	// 月销数量
	private int monthlySales;
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id = id;
	}
	public String getBookName(){
		return bookName;
	}
	public void setBookName(String bookName){
		this.bookName = bookName;
	}
	public String getAuthor(){
		return author;
	}
	public void setAuthor(String author){
		this.author = author;
	}
	public Double getPrice(){
		return price;
	}
	public void setPrice(Double price){
		this.price = price;
	}
	public String getPressId(){
		return pressId;
	}
	public void setPressId(String pressId){
		this.pressId = pressId;
	}
	public String getCreateTime(){
		return createTime;
	}
	public void setCreateTime(String createTime){
		this.createTime = createTime;
	}
	public String getCreateBy(){
		return createBy;
	}
	public void setCreateBy(String createBy){
		this.createBy = createBy;
	}
	public String getAvailable(){
		return available;
	}
	public void setAvailable(String available){
		this.available = available;
	}
	public String getDel(){
		return del;
	}
	public void setDel(String del){
		this.del = del;
	}

	public List<BookType> getBookTypes() {
		return bookTypes;
	}

	public void setBookTypes(List<BookType> bookTypes) {
		this.bookTypes = bookTypes;
	}

	public List<String> getTypeIds() {
		return typeIds;
	}

	public void setTypeIds(List<String> typeIds) {
		this.typeIds = typeIds;
	}

	public List<Resources> getResources() {
		return resources;
	}

	public void setResources(List<Resources> resources) {
		this.resources = resources;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public List<Resources> getDetailResources() {
		return detailResources;
	}

	public void setDetailResources(List<Resources> detailResources) {
		this.detailResources = detailResources;
	}


	public String getDetailsPath() {
		return detailsPath;
	}

	public void setDetailsPath(String detailsPath) {
		this.detailsPath = detailsPath;
	}

	public JSONArray getDetails() {
		return details;
	}

	public void setDetails(JSONArray details) {
		this.details = details;
	}

	public String getHeadPic() {
		return headPic;
	}

	public void setHeadPic(String headPic) {
		this.headPic = headPic;
	}

	public String getPressName() {
		return pressName;
	}

	public void setPressName(String pressName) {
		this.pressName = pressName;
	}

	public int getMonthlySales() {
		return monthlySales;
	}

	public void setMonthlySales(int monthlySales) {
		this.monthlySales = monthlySales;
	}
}
